#include "Role.hpp"

std::string BFT::util::roleToString(BFT::util::Role _r)
{
	std::string result;
	
	switch(_r)
	{
		case EXEC:
			result="EXEC";
			break;
		case CLIENT:
			result="CLIENT";
			break;
		case ORDER:
			result="ORDER";
			break;
		case FILTER:
			result="FILTER";
			break;
		default:
			fprintf(stderr,"Uknown Role");
			exit(21);
	}
	
	return result;
}

